<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../../../js/lib/jquery/jquery-3.0.0.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<input type="input" name="" id="txt1" value="some text" />
		<input type="button" name="" id="copy" value="copy" />
		<textarea rows="10" cols="30" id="ta1"></textarea>
		<input type="button" name="" id="paste" value="paste" />
		<script type="text/javascript">
			var clipValue="";
			$("#copy").click(function () {
				clipValue=$("#txt1").val();
			})
			$("#paste").click(function () {
				$("#ta1").val(clipValue);
			})
		</script>
	</body>
</html>
